<head>
	<meta name="layout" content="main" />
	<title>查询用户</title>
</head>

<body>

	<div class="nav">
		<span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
		<span class="menuButton"><g:link class="list" action="list">User List</g:link></span>
	</div>

	<div class="body">
		<h1>查找用户</h1>
		<g:if test="${flash.message}">
		<div class="message">${flash.message}</div>
		</g:if>
		<g:hasErrors bean="${person}">
		<div class="errors">
			<g:renderErrors bean="${person}" as="list" />
		</div>
		</g:hasErrors>
		<g:form action="searchResult">
			<div class="dialog">
				<table>
				<tbody>
                    <tr class="prop">
						<td valign="top" class="name"><label for="username">ID:</label></td>
						<td valign="top" class="value ${hasErrors(bean:person,field:'userid','errors')}">
							<input type="text" id="userid" name="userid" value="${person?.id?.encodeAsHTML()}"/>
						</td>
					</tr>

					<tr class="prop">
						<td valign="top" class="name"><label for="username">登录名:</label></td>
						<td valign="top" class="value ${hasErrors(bean:person,field:'username','errors')}">
							<input type="text" id="username" name="username" value="${person?.username?.encodeAsHTML()}"/>
						</td>
					</tr>

                    <tr class="prop">
						<td valign="top" class="name"><label for="email">Email:</label></td>
						<td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}">
							<input type="text" id="email" name="email" value="${person?.email?.encodeAsHTML()}"/>
						</td>
					</tr>

					<tr class="prop">
						<td valign="top" class="name"><label for="enabled">可用</label></td>
						<td valign="top" class="value ${hasErrors(bean:person,field:'enabled','errors')}">
							<input type="checkbox" name="enabled" style="border:0px;"/>
						</td>
					</tr>

					<tr class="prop">
						<td valign="top" class="name"><label for="description">VIP</label></td>
						<td valign="top" class="value ${hasErrors(bean:person,field:'vip','errors')}">
							<input type="text" name="vip" size="6"/>
						</td>
					</tr>
				</tbody>
				</table>
			</div>

			<div class="buttons">
				<span class="button"><input class="save" type="submit" value="查询提交" /></span>
			</div>

		</g:form>

	</div>
</body>
